package com.zy.learn.bean;

import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;

public class InitializationCallbackBean implements InitializingBean {

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("InitializationCallbackBean.afterPropertiesSet()... implement InitializingBean");
	}


	public void init(){
		System.out.println("InitializationCallbackBean.init()... xml config");
	}

	@PostConstruct
	public void postConstruct(){
		System.out.println("InitializationCallbackBean.postConstruct()... annotation config");
	}
}
